sum of numbers from 0 to a given number